using namespace std;
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
struct Date
{
    int year;
    int month;
    int day;
};

void init_date(struct Date &d)
{
    cout << "请输入年月日";
    cin >> d.year >> d.month >> d.day;
}

void print_date(struct Date &d)
{
    cout << d.year << d.month << d.day << endl;
}

bool is_leap_year(struct Date &d)
{
    if ((d.year % 4 == 0) && (d.year % 100 != 0) && (d.year % 400))
    {
        return true;
    }
    else
        return false;
}

class mydate
{
private:
    int year, month, day;

public:
    void init_date()
    {
        cout << "请输入年月日";
        cin >> year >> month >> day;
    }

    void print_date()
    {
        cout << year << "/" << month << "/" << day;
    }

    bool is_leap_year()
    {
        if ((year % 4 == 0) && (year % 100 != 0) && (year % 400))
        {
            return true;
        }
        return false;
    }
};

int main()
{
    mydate d;
    d.init_date();
    d.print_date();
    bool f;
    f = d.is_leap_year();
    if (f)
    {
        cout << "是闰年";
    }
    else
        cout << "不是闰年";
}